package com.hsb.seckill.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * (Order)实体类
 *
 * @author makejava
 * @since 2021-09-05 21:58:25
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_order")
public class Order implements Serializable {
    private static final long serialVersionUID = -68624235376870073L;
    /**
     * 订单id
     */
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 商品id
     */
    private Long goodsId;
    /**
     * 收货地址
     */
    private Long deliveryAddrId;
    /**
     * 冗余的商品名称
     */
    private String goodsName;
    /**
     * 商品数量
     */
    private Integer goodsCount;
    /**
     * 商品单价
     */
    private BigDecimal goodsPrice;
    /**
     * 1pc,2android,3ios
     */
    private Integer orderChannel;
    /**
     * 订单状态，1已支付，2已发货，3已收货，4已退款，5已完成
     */
    private Integer status;
    /**
     * 订单创建时间
     */
    private Date createDate;
    /**
     * 支付时间
     */
    private Date payDate;

}